package com.waymap.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.waymap.domain.Menu;
import com.waymap.domain.MenuExample;
import com.waymap.mapper.MenuMapper;
import com.waymap.service.MenuService;

@Service
public class MenuServiceImpl implements MenuService{
	@Autowired
	private MenuMapper menuMapper;
	
	@Override
	public List<Menu> getMenuByAccountId(String accountId) {
		MenuExample me=new MenuExample();
		me.createCriteria().andAccountIdEqualTo(accountId);
		return menuMapper.selectByExample(me);
	}
}
